﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace OnlineManagement.Web
{
    public class YuChanHelper
    {
        /// <summary>
        /// 根据配种日期获取预产日期
        /// 算法： 预产期 月加4，日减8
        /// </summary>
        /// <param name="peiZhongDate"></param>
        /// <returns></returns>
        public static DateTime GetYuChanDate(DateTime peiZhongDate) {
            return peiZhongDate.AddMonths(4).AddDays(-8); 
        }
    }
}